package com.zb.validation.demo.model;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 人-POJO
 *
 * @author ZB
 * @version 1.0
 * @since 1.0
 */
@Data
public class Person {

    @NotBlank(message = "名字不能为空")
    private String name;

    private Integer age;

    private String sex;
}
